package com.flu.holidays.config;

import com.flu.holidays.constant.PropertiesConstant;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;

//当holidays.datasource.type=db时生效
@Configuration
@ConditionalOnProperty(prefix = PropertiesConstant.PREFIX,
        name = PropertiesConstant.DATASOURCE_TYPE,
        havingValue = "db")
@MapperScan(basePackages = "com.flu.holidays.service.impl.db.mapper")
public class DbMapperConfiguration {

}